package com.jerome.election.sync;

import java.io.IOException;
import java.net.Socket;

/**
 * Service Center Service
 * @author Jerome
 * @date 2023/9/12
 */
public interface CenterServerHandler {
    /**
     * Handle socket requests
     * @param socket The socket to be handled
     * @throws IOException if there is an I/O error
     */
    void handle(Socket socket) throws IOException;
}
